package com.wander.patterns.act.memento;

import lombok.Data;

/**
 * @description:备忘录类
 * @author: zhuyong
 * @create: 2019-09-11 17:45
 **/
@Data
public class EmpMemento {

    String name;

    int age;

    int salary;

    public EmpMemento(Emp emp) {
        this.name = emp.getName();
        this.age = emp.getAge();
        this.salary = emp.getSalary();
    }
}
